package com.gitee.dengmin.tenant.constants;

import com.gitee.dengmin.tenant.models.Tenant;

import java.util.concurrent.ConcurrentHashMap;
import java.util.Map;

public class TenantMap {
    public static Map<String, Tenant> map = new ConcurrentHashMap<>();

    public static void put(String key, Tenant tenant){
        map.put(key, tenant);
    }

    public static Tenant get(String key){
        return map.get(key);
    }

    public static void remove(String key){
        map.remove(key);
    }

    public static Map<String,Tenant> getMap(){
        return map;
    }

}
